#include <stdlib.h>
#include <stdio.h>

#include "dtk.h"

int test()
{
	DTKActor *stage, *scene;
	DTKActor *button1, *button2;
	DColor bgcolor = {0xff, 0xff, 0xff, 0xff};

	stage = dtk_stage_new(NULL);
	dtk_actor_set_size(stage, 480, 272);
	dtk_actor_set_bgcolor (stage, &bgcolor);

	scene = dtk_scene_new();
	dtk_actor_set_size(scene, 400, 272);
	dtk_actor_set_position (scene, 80, 0);
	dtk_actor_set_margin(scene, 10, 10, 10, 10);
	bgcolor.red = 0;
	dtk_actor_set_bgcolor (scene, &bgcolor);
	dtk_actor_add(stage, scene, NULL);

	button1 = dtk_button_new ("button test1");
	dtk_actor_set_position (button1, 10, 20);
	dtk_actor_set_size (button1, 100, 30);

	button2 = dtk_button_new ("button test2");
	dtk_actor_set_position (button2, 120, 50);
	dtk_actor_set_size (button2, 100, 30);

	dtk_actor_add(scene, button1, button2, NULL);

	dtk_actor_show_all(stage);
}

int main(int argc, char* argv[])
{
	dtk_init (&argc, &argv);

	test();
	dtk_loop();
	dtk_release();
	return 0;

}
